package com.moyuaninfo.controller;

import com.moyuaninfo.utils.DetectionMessageUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 邱祥霸
 * @date 2020/4/9
 */
@RestController
public class HomeController {

    @RequestMapping("home")
    public String home() {
        String iccid = "";
        String message = "03 01 12 66 21 63 01 03 60 37 2E 30 34 36 31 31 32 2E 31 36 33 31 32 2E 31 36 33 31 32 2E 31 36 33";
        message = message.replaceAll(" ", "");
        DetectionMessageUtils.dueMessage(iccid, message);
        return "SUCCESS";
    }
}
